package com.tn.user.controller;

import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tn
 * @version 1
 * @ClassName SentinelFusingTestController
 * @description Sentinel 熔断测试
 * @date 2020/8/10 11:44
 */
@RestController
@RequestMapping(value = "sentinel/fusing")
@ApiOperation(value = "user - 熔断测试")
public class SentinelFusingTestController {


    /**
     * rt熔断策略
     * @return
     * @throws InterruptedException
     */
    @GetMapping(value = "test01")
    @ApiOperation(value = "user - 熔断测试 - test01")
    public String test01() throws InterruptedException {
        Thread.sleep(300L);
        return "熔断测试 ^ _ ^";
    }
}
